package com.link.base.base.dailystatement.dao.mybatis.mapper;

import com.link.base.base.dailystatement.model.DailyReceipt;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  安小波
 * @date:   2018-08-01
 * @version 1.0
 */

public interface DailyReceiptMapper extends BasicMapper<DailyReceipt> {
    /**
     * 查询日结单详情上的收款明细信息
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public List<DailyReceipt> queryReceipt(DailyReceipt entity) throws Exception;

    /**
     * 根据headId查询日结单详情的收款明细数据
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public List<DailyReceipt> queryByHeadId(DailyReceipt entity) throws Exception;

    /**
     * 批量插入收款明细
     *
     * @param receiptList
     * @throws Exception
     */
    public void batchInsertReceipt(List<DailyReceipt> receiptList) throws Exception;
}
